package com.wang.springframework.test.bean;

import com.wang.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/9/3/003 14:53
 **/
public class UserServiceBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("拦截方法:"+method.getName());
    }
}
